package demo03_GroupingRouters

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/context"
)

func Run() {
	app := iris.Default()

	// Simple group: v1.
	v1 := app.Party("/v1")
	{
		v1.Post("/login", loginEndpoint)
		v1.Post("/submit", submitEndpoint)
		v1.Post("/read", readEndpoint)
	}

	// Simple group: v2.
	v2 := app.Party("/v2")
	{
		v2.Post("/login", loginEndpoint)
		v2.Post("/submit", submitEndpoint)
		v2.Post("/read", readEndpoint)
	}

	app.Run(iris.Addr(":8080"))
}

func readEndpoint(context context.Context) {

}

func submitEndpoint(context context.Context) {

}

func loginEndpoint(context context.Context) {

}
